home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 32 / Amiga Format AFCD32 (Nov 1998, Issue 117).iso / -seriously_amiga- / programming / c / mesa-2.6 / src / config.h < prev    next >
C/C++ Source or Header  |  1998-08-10  |  3KB  |  153 lines

  1. /* $Id: config.h,v 1.8 1997/09/27 00:13:44 brianp Exp $ */
  2.  
  3. /*
  4.  * Mesa 3-D graphics library
  5.  * Version:  2.5
  6.  * Copyright (C) 1995-1997  Brian Paul
  7.  *
  8.  * This library is free software; you can redistribute it and/or
  9.  * modify it under the terms of the GNU Library General Public
  10.  * License as published by the Free Software Foundation; either
  11.  * version 2 of the License, or (at your option) any later version.
  12.  *
  13.  * This library is distributed in the hope that it will be useful,
  14.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  16.  * Library General Public License for more details.
  17.  *
  18.  * You should have received a copy of the GNU Library General Public
  19.  * License along with this library; if not, write to the Free
  20.  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  */
  22.  
  23.  
  24. /*
  25.  * config.h
  26.  *
  27.  * Modified  27 Jun 1998
  28.  * by Jarno van der Linden
  29.  * jarno@kcbbs.gen.nz
  30.  *
  31.  * Based on config,h ver 1.8
  32.  * Removed any Amiga-specific #defines
  33.  *
  34.  */
  35.  
  36.  
  37. /*
  38.  * Tunable configuration parameters.
  39.  */
  40.  
  41.  
  42.  
  43. #ifndef CONFIG_H
  44. #define CONFIG_H
  45.  
  46.  
  47.  
  48. /* Maximum modelview matrix stack depth: */
  49. #define MAX_MODELVIEW_STACK_DEPTH 32
  50.  
  51. /* Maximum projection matrix stack depth: */
  52. #define MAX_PROJECTION_STACK_DEPTH 32
  53.  
  54. /* Maximum texture matrix stack depth: */
  55. #define MAX_TEXTURE_STACK_DEPTH 10
  56.  
  57. /* Maximum attribute stack depth: */
  58. #define MAX_ATTRIB_STACK_DEPTH 16
  59.  
  60. /* Maximum client attribute stack depth: */
  61. #define MAX_CLIENT_ATTRIB_STACK_DEPTH 16
  62.  
  63. /* Maximum recursion depth of display list calls: */
  64. #define MAX_LIST_NESTING 64
  65.  
  66. /* Maximum number of lights: */
  67. #define MAX_LIGHTS 8
  68.  
  69. /* Maximum user-defined clipping planes: */
  70. #define MAX_CLIP_PLANES 6
  71.  
  72. /* Number of texture levels */
  73. #ifdef FX
  74. #define MAX_TEXTURE_LEVELS 9
  75. #else
  76. #define MAX_TEXTURE_LEVELS 11
  77. #endif
  78.  
  79. /* Max texture size */
  80. #define MAX_TEXTURE_SIZE   (1 << (MAX_TEXTURE_LEVELS-1))
  81.  
  82. /* Maximum pixel map lookup table size: */
  83. #define MAX_PIXEL_MAP_TABLE 256
  84.  
  85. /* Number of auxillary color buffers: */
  86. #define NUM_AUX_BUFFERS 0
  87.  
  88. /* Maximum order (degree) of curves: */
  89. #define MAX_EVAL_ORDER 30
  90.  
  91. /* Maximum Name stack depth */
  92. #define MAX_NAME_STACK_DEPTH 64
  93.  
  94. /* Min and Max point sizes and granularity */
  95. #define MIN_POINT_SIZE 1.0
  96. #define MAX_POINT_SIZE 10.0
  97. #define POINT_SIZE_GRANULARITY 0.1
  98.  
  99. /* Min and Max line widths and granularity */
  100. #define MIN_LINE_WIDTH 1.0
  101. #define MAX_LINE_WIDTH 10.0
  102. #define LINE_WIDTH_GRANULARITY 1.0
  103.  
  104. /* Max texture palette size */
  105. #define MAX_TEXTURE_PALETTE_SIZE 256
  106.  
  107.  
  108. /* Maximum viewport size: */
  109. #define MAX_WIDTH 1600
  110. #define MAX_HEIGHT 1200
  111.  
  112.  
  113.  
  114. /*
  115.  * Bits per accumulation buffer color component:  8 or 16
  116.  */
  117. #define ACCUM_BITS 16
  118.  
  119.  
  120. /*
  121.  * Bits per depth buffer value:  16 or 32
  122.  */
  123. #define DEPTH_BITS 16
  124.  
  125. #if DEPTH_BITS==16
  126. #  define MAX_DEPTH 0xffff
  127. #  define DEPTH_SCALE 65535.0F
  128. #else
  129. #  define MAX_DEPTH 0x00ffffff
  130. #  define DEPTH_SCALE ((GLfloat) 0x00ffffff)
  131. #endif
  132.  
  133.  
  134. /*
  135.  * Bits per stencil value:  8
  136.  */
  137. #define STENCIL_BITS 8
  138.  
  139.  
  140.  
  141. /***
  142.  *** For X11 driver only:
  143.  ***/
  144.  
  145. /*
  146.  * When defined, use 6x6x6 dithering instead of 5x9x5.
  147.  * 5x9x5 better for general colors, 6x6x6 better for grayscale.
  148.  */
  149. /*#define DITHER666*/
  150.  
  151.  
  152. #endif
  153.